package com.ruoyi.business.domain.fission;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 群裂变活动邀请关系表
 * </p>
 *
 * @author
 * @since 2023-11-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_wecom_chat_group_fission_invite")
public class TbWecomChatGroupFissionInvite extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 群裂变活动邀请关系表
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 用户id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 用户 union_id
     */
    @TableField("user_union_id")
    private String userUnionId;

    /**
     * 邀请者用户id
     */
    @TableField("inviter_user_id")
    private Long inviterUserId;

    /**
     * 邀请者 union_id
     */
    @TableField("inviter_user_union_id")
    private String inviterUserUnionId;

    /**
     * 场景值
     */
    @TableField("scene")
    private String scene;

    /**
     * 状态 0 未入群 1已进群 2 已退群
     */
    @TableField("status")
    private Integer status;

    /**
     * 加入的群聊id
     */
    @TableField("chat_id")
    private String chatId;

    /**
     * 活动id
     */
    @TableField("fission_id")
    private Long fissionId;

}
